package com.example.survey23.service.impl;

import com.example.survey23.entity.QuestionBankProblem;
import com.example.survey23.mapper.QuestionBankProblemMapper;
import com.example.survey23.service.QuestionBankProblemService;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * <p>
 *  服务实现类
 * </p>
 *
 * @author 23Group
 * @since 2022-11-10
 */

@Service
public class QuestionBankProblemServiceImpl extends ServiceImpl<QuestionBankProblemMapper, QuestionBankProblem> implements QuestionBankProblemService {
    @Autowired
    QuestionBankProblemMapper questionBankProblemMapper;
    public int getMaxSurveyBaseId(){
        return questionBankProblemMapper.getMaxSurveyBaseId();
    }

    public List<QuestionBankProblem> getListByBelongId(int belongId){
        return questionBankProblemMapper.getListByBelongId(belongId);
    }

}
